package org.jeecg.modules.demo.ch.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 联想打印小票
 * @Author: jeecg-boot
 * @Date:   2022-10-19
 * @Version: V1.0
 */
@Data
@TableName("ch_association_print")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ch_association_print对象", description="联想打印小票")
public class ChAssociationPrint implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**料号（长度小于等于14位）*/
	@Excel(name = "料号（长度小于等于14位）", width = 15)
    @ApiModelProperty(value = "料号（长度小于等于14位）")
    private String itemNo;
	/**生产日期(长度6位)*/
	@Excel(name = "生产日期(长度6位)", width = 15)
    @ApiModelProperty(value = "生产日期(长度6位)")
    private String manufactureDate;
	/**生产批号（长度不超过8位）*/
	@Excel(name = "生产批号（长度不超过8位）", width = 15)
    @ApiModelProperty(value = "生产批号（长度不超过8位）")
    private String lotNo;
	/**版本*/
	@Excel(name = "版本", width = 15)
    @ApiModelProperty(value = "版本")
    private String edition;
	/**外箱数量(Quantity最小包装的数量;外箱 Label 时代表整箱的数量)*/
	@Excel(name = "外箱数量(Quantity最小包装的数量;外箱 Label 时代表整箱的数量)", width = 15)
    @ApiModelProperty(value = "外箱数量(Quantity最小包装的数量;外箱 Label 时代表整箱的数量)")
    private String outerBoxesNum;
	/**模穴号（生产时的模穴号，没有则放0）*/
	@Excel(name = "模穴号（生产时的模穴号，没有则放0）", width = 15)
    @ApiModelProperty(value = "模穴号（生产时的模穴号，没有则放0）")
    private String moldCavityNo;
	/**机种名*/
	@Excel(name = "机种名", width = 15)
    @ApiModelProperty(value = "机种名")
    private String modelName;
	/**品名*/
	@Excel(name = "品名", width = 15)
    @ApiModelProperty(value = "品名")
    private String productName;
	/**包装日期(默认等于填的生产日期)*/
	@Excel(name = "包装日期(默认等于填的生产日期)", width = 15)
    @ApiModelProperty(value = "包装日期(默认等于填的生产日期)")
    private String packingDate;
	/**材质*/
	@Excel(name = "材质", width = 15)
    @ApiModelProperty(value = "材质")
    private String materialTexture;
	/**色号*/
	@Excel(name = "色号", width = 15)
    @ApiModelProperty(value = "色号")
    private String colorCode;
	/**是否外箱（B外箱I内箱）*/
	@Excel(name = "是否外箱（B外箱I内箱）", width = 15)
    @ApiModelProperty(value = "是否外箱（B外箱I内箱）")
    private String outerBox;
	/**箱号（条码总长18位）*/
	@Excel(name = "箱号（条码总长18位）", width = 15)
    @ApiModelProperty(value = "箱号（条码总长18位）")
    private String reelId;
	/**二维码*/
	@Excel(name = "二维码", width = 15)
    @ApiModelProperty(value = "二维码")
    private String qrCode;
	/**AA1（vendorCode 光宝分配给供应商的代码，长度6位）*/
	@Excel(name = "AA1（vendorCode 光宝分配给供应商的代码，长度6位）", width = 15)
    @ApiModelProperty(value = "AA1（vendorCode 光宝分配给供应商的代码，长度6位）")
    private String aa1;
	/**AA2(reelId的前12位)*/
	@Excel(name = "AA2(reelId的前12位)", width = 15)
    @ApiModelProperty(value = "AA2(reelId的前12位)")
    private String aa2;
	/**流水号*/
	@Excel(name = "流水号", width = 15)
    @ApiModelProperty(value = "流水号")
    private String serialNumber;
	/**箱数(默认1)*/
	@Excel(name = "箱数(默认1)", width = 15)
    @ApiModelProperty(value = "箱数(默认1)")
    private String casesNum;
	/**尾数数量(默认为0)*/
	@Excel(name = "尾数数量(默认为0)", width = 15)
    @ApiModelProperty(value = "尾数数量(默认为0)")
    private String mantissaQuantity;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**
     * printLocation 打印地点
     * 01  河源昌红
     * 02  昌红注塑部
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "打印地点")
    private String printLocation;

    /**
     * printLocation 总数
     */
    @ApiModelProperty(value = "总数")
    private String totalNum;
}
